package nowcoder.coding;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * @author fance
 * @date 18-6-15 上午11:59
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int m = scanner.nextInt();
        Map<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < n; i++) {
            map.put(scanner.nextInt(), scanner.nextInt());
        }

        // todo 太菜了,多重背包 左不出来做不出来...

    }
}